package com.epkursant.testy;

import java.util.Date;

import com.ep.general.kursant.Kursant;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.Expose;

public class TestyWyniki {

	@Expose
	private int id;
	@Expose
	private int pt;
	@Expose
	private Date data;

	private Kursant kursant;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPt() {
		return pt;
	}

	public void setPt(int pt) {
		this.pt = pt;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public Kursant getKursant() {
		return kursant;
	}

	public void setKursant(Kursant kursant) {
		this.kursant = kursant;
	}
	
	public String getAsJson() {
		GsonBuilder gsonBuilder = new GsonBuilder();

		Gson gson = gsonBuilder.create();

		return gson.toJson(this);
	}
}
